 package com.cxl.pattern.singleton;
 
 import java.io.PrintStream;
 
 public class SingletonClient
 {
   public static void main(String[] args)
   {
     Singleton instance = Singleton.getInstance();
 
     System.out.println(instance);
 
     SingletonLazy instance2 = SingletonLazy.getInstance();
 
     System.out.println(instance2);
 
     SingletonReg instance3 = SingletonReg.getInstance("com.cxl.pattern.singleton.SingletonReg");
 
     System.out.println(instance3);
 
     System.out.println(SingletonPrefect.getInstance());
     System.out.println(SingletonPrefect.getInstance());
     System.out.println(SingletonPrefect.getInstance());
     System.out.println(SingletonPrefect.getInstance());
     System.out.println(SingletonPrefect.getInstance());
 
     AppConfig appConfig = AppConfig.getInstance();
 
     System.out.println("parmA = " + appConfig.getParameterA());
 
     System.out.println("parmB = " + appConfig.getParameterB());
   }
 }

/* Location:           E:\work\eclipse3.6_\workspace\design_pattern\
 * Qualified Name:     com.cxl.pattern.singleton.SingletonClient
 * JD-Core Version:    0.6.1
 */